<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            background-color: #222;
        }

        h1 {
            font-size: 15rem;
            font-family: Sans-serif;
            position: relative;
            text-transform: uppercase;
        }

        h1::after {
            content: 'spotlight';
            position: absolute;
            top: 0;
            left: 0;
            background-image: linear-gradient(to right, #f391a9, #d71345, #f58220, #45b97c, #6f60aa, #f15a22, #00a6ac, #009ad6);
            color: transparent;
            /* 文字裁剪 */
            background-clip: text;
            /* 谷歌 */
            -webkit-background-clip: text;
            /* 利用裁切来创建元素的可显示区域,circle表示创建圆形,100px表示圆的直径，0% 50% 表示圆形的圆心 */
            animation: move 5s infinite;
        }

        @keyframes move {
            0% {
                clip-path: circle(150px at 0% 50%);
            }

            50% {
                clip-path: circle(200px at 100% 50%);
            }

            100% {
                clip-path: circle(150px at 0% 50%);
            }
        }
    </style>
</head>

<body>
    <h1>spotlight</h1>
</body>

</html>